package team.pwy.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(of = {"id"})
public class OrderDTO implements Serializable {

    private Integer id;
    private String number;
    private Integer userId;
    private String realName;
    private String phone;
    private Integer movieId;
    private String movieTitle;
    private String posterImg;
    private double moviePrice;
    private Integer quota;
    private double total;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")

    private Date createTime;

    private Integer sessionId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")

    private Date startTime;
    private Integer couponId;
    private Integer couponMoney;
    private List<Integer> seatId;
}
